﻿<!DOCTYPE html>
<html style="height:100%">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>NFinal2帮助文档</title>
	<meta charset="utf-8" />
    <script src="/fileTree/jquery.js" type="text/javascript"></script>
    <script src="/fileTree/jquery.easing.js" type="text/javascript"></script>
    <script src="/fileTree/jqueryFileTree.js" type="text/javascript"></script>
    <link href="/fileTree/jqueryFileTree.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="./NFinalChm/Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="./NFinalChm/Content/highlighter/scripts/shBrushJScript.js"></script>
    <script type="text/javascript" src="./NFinalChm/Content/highlighter/scripts/shBrushCSharp.js"></script>
    <script type="text/javascript" src="./NFinalChm/Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="./NFinalChm/Content/highlighter/styles/shCoreDefault.css" />
    <style>
        html, body, div, header, main, footer{
            margin:0;
            padding:0;
        }
    </style>
</head>
<body style="height:100%;">
    <div style="width:100%;height:100%;">
        <header>
            
        </header>
        <main style="height:100%;">
            <nav id="fileList" style="width:300px;float:left;overflow-y:scroll;height:100%;">

            </nav>
            <article style="margin:0 0 0 300px;height:100%;">
                <iframe id="show" name="show" width="100%" height="100%" frameBorder="0" frameSpacing="0" scrolling="auto" marginHeight="0" marginWidth="0" onload="iframeOnload()" src="/NFinalChm/1.入门/1.简介.html"></iframe>
            </article>
            <div style="clear:both;"></div>
        </main>
        <footer></footer>
    </div>
    <script> 
        /*动态调整iframe的大小*/
        function changeIframeSize(iframeContentHeight) {
            document.getElementById('show').height = iframeContentHeight + 20;
        }
        /*iframe页面载入处理函数*/
        function iframeOnload() {
            var frms = document.getElementById('show');
            /*判断浏览器类型*/
            var height = ($.browser.msie || $.browser.opera) ? frms.document.body.scrollHeight : frms.contentDocument.body.offsetHeight;
            //changeIframeSize(height);
            /*this.height=rightContent.document.body.scrollHeight*/
        }
            String.prototype.startWith = function (str) {
                var reg = new RegExp("^" + str);
                return reg.test(this);
            }

            String.prototype.endWith = function (str) {
                var reg = new RegExp(str + "$");
                return reg.test(this);
            }
            var fileName = "";
            $(document).ready(function () {
                $('#fileList').fileTree({ root: '/NFinalChm/', script: '/fileTree/connectors/jqueryFileTree.ashx' }, function (file) {
                    fileName = file;
                    //可浏览文件
                    if (file.endWith(".html") || file.endWith(".htm") || file.endWith(".txt")
                        || file.endWith(".xml")) {
                        $("#show").attr("src", file);
                    }
                    else if (file.endWith(".cs"))
                    {
                        $("#show").attr("src", "./Csharp.aspx?url="+file);
                    }
                });
            });
    </script>
</body>
</html>
